#include "pch.h"
#include "VertexArrayRenderable.h"

void VertexArrayRenderable::Bind()
{
	VertexArray::Bind();
	m_VBO.Bind();
	m_EBO.Bind();
}

void VertexArrayRenderable::Unbind()
{
	m_EBO.Unbind();
	m_VBO.Unbind();
	VertexArray::Unbind();
}

void VertexArrayRenderable::SetData(BufferDataType bdType, void* data, unsigned int len, GLenum type)
{
	if (bdType == VBO_DATA)
	{
		//m_VBO.SetData(data, len, type);
	}
	else if (bdType == EBO_DATA)
	{
		//m_EBO.SetData(data, len, type);
	}
}
